package com.ycl.mapper;

import com.ycl.pojo.VIP;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VIPMapper {

    @Select("select * from y_chat_vip where name = #{name}")
    VIP select(@Param("name") String name);

    @Insert("insert into y_chat_vip (name, flag) values(#{name}, #{flag})")
    void add(@Param("name")String name, @Param("flag")boolean flag);
}
